import NatureHistogram from '@/components/chart/industry/IndustryNatureHistogram'
import NaturePie from '@/components/chart/industry/IndustryNaturePie'
import RegionHistogram from '@/components/chart/industry/IndustryRegionHistogram'
import RegionPie from '@/components/chart/industry/IndustryRegionPie'

const routers = [
  {path: 'industry-nature/histograms', component: NatureHistogram},
  {path: 'industry-nature/pies', component: NaturePie},
  {path: 'industry-region/histograms', component: RegionHistogram},
  {path: 'industry-region/pies', component: RegionPie}
]

const menu = {
  title: '行业分析',
  icon: 'th-large',
  flag: false,
  sons: [
    {
      title: '词性柱状图',
      icon: 'bar-chart',
      path: '/chart/industry-nature/histograms',
      perm: 'analysisIndustryKeywordPerformance:pillar',
      flag: false
    },
    {
      title: '词性占比图',
      icon: 'pie-chart',
      path: '/chart/industry-nature/pies',
      perm: 'analysisItemKeyword:itemNatureChart',
      flag: false
    },
    {
      title: '地域柱状图',
      icon: 'bar-chart',
      path: '/chart/industry-region/histograms',
      perm: 'analysisItemRegion:itemRegionHistogramChart',
      flag: false
    },
    {
      title: '地域占比图',
      icon: 'pie-chart',
      path: '/chart/industry-region/pies',
      perm: 'analysisIndustryRegionPerformance:pie',
      flag: false
    }
  ]
}

export default {
  routers,
  menu
}
